package com.lm.service.impl;

import com.lm.mapper.SignMapper;
import com.lm.pojo.Resident;
import com.lm.pojo.Sign;
import com.lm.service.SignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 苟
 * @version 1.0
 * @description: TODO 签约管理服务层
 * @date 2025/9/22 10:27
 */
@Service
public class SignServiceImpl  implements SignService {

    @Autowired
    SignMapper signMapper;

    @Override
    public List<Sign> findSignList() {
        return signMapper.findSignList();
    }

    @Override
    public List<Sign> findSignRecord() {
        return signMapper.findSignRecord();
    }

    @Override
    public List<Resident> findResident() {
        return signMapper.findResident();
    }

    @Override
    public List<Sign> handleQuery(Sign sign) {
        return signMapper.handleQuery(sign);
    }

    @Override
    public void passReview(Integer signId, Integer status) {
        signMapper.passReview(signId,status);
    }

    @Override
    public void rejectReview(Integer signId, Integer signStatus, String value) {
        signMapper.rejectReview(signId,signStatus,value);
    }

    @Override
    public void passUpdateSign(Sign sign) {
        signMapper.passUpdateSign(sign);
    }

    @Override
    public void passUpdateRecord(Sign sign) {
        signMapper.passUpdateRecord(sign);
    }

    @Override
    public void passAddSign(Sign sign) {
        signMapper.passAddSign(sign);
    }
}
